﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Pdm.Commons;

namespace Pdm.Wpf.Controls
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class MatrixGrid : UserControl
    {
        public MatrixGrid()
        {
            InitializeComponent();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {

        }
        public void buildEmptyMatrix(List<Specification> items)
        {
            matrix.Rows = items.Count;
            matrix.Columns = items.Count;

            foreach (Specification item in items)
            {
                TextBlock vert = new TextBlock();
                TextBlock horiz = new TextBlock();
                vert.Text = item.name;
                horiz.Text = item.name;
                //canvHoriz.Children.Add(horiz);
                horizElements.Children.Add(horiz);
                vertElements.Children.Add(vert);
            }
        }
    }
}
